/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.ui.visual;

import bgu.sonar.util.meta.Meta;
import java.awt.Image;

/**
 *
 * @author bennyl
 */
public interface HasVisualData {

    String getVisualName();

    Image getIcon();

    String getDescription();        

    public static class Support {

        public static HasVisualData extract(Object o) {
            if (o instanceof HasVisualData) {
                return (HasVisualData) o;
            }
            return Meta.Support.extract(o);
        }
    }
}
